package com.itheima;

import com.itheima.config.SpringConfig;
import com.itheima.service.ResourceService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext cx = new AnnotationConfigApplicationContext(SpringConfig.class);

        ResourceService resourceService = cx.getBean(ResourceService.class);

        boolean flag = resourceService.openUrL("http://www.baidu.com" , "  root");

        System.out.println(flag);
    }
}
